import Vue from 'vue';
import VueRouter from 'vue-router';
Vue.use(VueRouter);

import Home from '../pages/Home.vue'
import List from '../pages/List.vue'
import Pingl from '../pages/Pingl.vue'
import Login from '../pages/Login.vue'
import Reg from '../pages/Reg.vue'
import Myd from '../pages/Myd.vue'

let routes=[
	 {path:'/home',component:Home},
	 {path:'/list',component:List},
	 {path:'/pingl',component:Pingl},
	 {path:'/login',component:Login},
	 {path:'/reg',component:Reg},
	 {path:'/myd',component:Myd},
	 {path:'/',redirect:'/home'}
	 
]



let router = new VueRouter({
  routes,
})
export default router;